{extend name="public/base"/}
{block name="style"}
<style type="text/css">
    .last-unselect .layui-input.layui-unselect
    {
        width: 200px !important;
    }
</style>
{/block}
{block name="content"}
<div class="layui-row layui-col-space15">
    <div class="layui-col-md6">
        <div class="layui-card">
            <div class="data-list" data-url="{:url('order', ['type' => 'account'])}">
                <form class="layui-form inline-form">
                    <div class="pull-left">
                        <div class="layui-inline">
                            <input type="text" name="sku" autofocus placeholder="SPU/SKU" class="layui-input">
                        </div>
                        <div class="layui-inline">
                            <input type="text" name="customize" placeholder="自定义时间" class="layui-input laydate-range">
                        </div>
                        <div class="layui-inline">
                            <select name="day"  lay-filter="data-list">
                                {foreach $days as $d}
                                <option {if $d ==7}selected{/if} value="{$d}">{$d}天</option>
                                {/foreach}
                            </select>
                        </div>
                        <div class="layui-inline last-unselect">
                            <select name="account_id"  lay-filter="data-list" lay-search>
                                <option value="">销售账号</option>
                                {foreach $account as $a}
                                <option value="{$a.account_id}">{$a.username}</option>
                                {/foreach}
                            </select>
                        </div>
                        <div class="layui-inline">
                            <button class="layui-btn layui-btn-sm layui-btn-normal search"><i class="layui-icon layui-icon-search"></i></button>
                        </div>
                    </div>
                </form>
                <div class="data">
                    <p><i class="fa fa-spinner fa-spin"></i> 加载中...</p>
                </div>
            </div>
        </div>
    </div>
    <div class="layui-col-md6">
        <div class="layui-card">
            <div class="data-list" data-url="{:url('order', ['type' => 'country'])}">
                <form class="layui-form inline-form">
                    <div class="pull-left">
                        <div class="layui-inline">
                            <input type="text" name="sku" placeholder="SPU/SKU" class="layui-input">
                        </div>
                        <div class="layui-inline">
                            <input type="text" name="customize" placeholder="自定义时间" class="layui-input laydate-range">
                        </div>
                        <div class="layui-inline">
                            <select name="day" lay-filter="data-list" lay-search>
                                {foreach $days as $d}
                                <option {if $d ==7}selected{/if} value="{$d}">{$d}天</option>
                                {/foreach}
                            </select>
                        </div>
                        <div class="layui-inline">
                            <select name="buyer_country_code" lay-search lay-filter="data-list">
                                <option value="">销售国家</option>
                                {foreach $counties as $c}
                                <option value="{$c.code_two}">{$c.name_ch}</option>
                                {/foreach}
                            </select>
                        </div>
                        <div class="layui-inline">
                            <button class="layui-btn layui-btn-sm layui-btn-normal search"><i class="layui-icon layui-icon-search"></i></button>
                        </div>
                    </div>
                </form>
                <div class="data">
                    <p><i class="fa fa-spinner fa-spin"></i> 加载中...</p>
                </div>
            </div>
        </div>
    </div>
</div>
{/block}
{block name="script"}
<script type="text/javascript">

</script>
{/block}